//
//  UIImage+Color.swift
//  rdb-led-banner
//
//  Created by radiobox3 on 2025/4/18.
//

import UIKit

extension UIImage{
    
    public func rtlImage() -> UIImage {
        if Locale.isRTL() {
            return UIImage(cgImage: self.cgImage!, scale: self.scale, orientation: .upMirrored)
        }
        return self
    }
    
    public func scale(_ value: CGFloat) -> UIImage {
        return UIImage(cgImage: self.cgImage!, scale: value, orientation: .upMirrored)
    }
}
